package org.dromara.system.service;

import org.dromara.system.domain.JwTeachingMaterialsInfo;
import org.dromara.system.domain.vo.JwTeachingMaterialsInfoVo;
import org.dromara.system.domain.bo.JwTeachingMaterialsInfoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 教材信息Service接口
 *
 * @author Lion Li
 * @date 2024-04-26
 */
public interface IJwTeachingMaterialsInfoService {

    /**
     * 查询教材信息
     */
    JwTeachingMaterialsInfoVo queryById(Long id);

    /**
     * 查询教材信息列表
     */
    TableDataInfo<JwTeachingMaterialsInfoVo> queryPageList(JwTeachingMaterialsInfoBo bo, PageQuery pageQuery);

    /**
     * 查询教材信息列表
     */
    List<JwTeachingMaterialsInfoVo> queryList(JwTeachingMaterialsInfoBo bo);

    /**
     * 新增教材信息
     */
    Boolean insertByBo(JwTeachingMaterialsInfoBo bo);

    /**
     * 修改教材信息
     */
    Boolean updateByBo(JwTeachingMaterialsInfoBo bo);

    /**
     * 校验并批量删除教材信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
